Edit Task: SetResourceDetails ResourceRange
Description
The ResourceRange attribute under EditTask defines the resource range constraint for the specified resource for all the task's possibilities.
Parameters
Parameter | Description |
---|---|
ResourceName | A string of text of the resource that is being defined within the command. |
MinRangeApplies | A Boolean value that determines if there is a minimum range constraint. |
MinRangeValue | A double value that defines the minimum range constraint value. |
MaxRangeApplies | A Boolean value that determines if there is a maximum range constraint. |
MaxRangeValue | A double value that defines the maximum range constraint value. |
Examples
Allow any minimum capacity, and set a maximum of 15 capacity units for all possibilities containing ResA in TaskA.
PATCH api/task/TaskA
Body:
{
"SetResourceDetails" : {
"ResourceName" : "ResA",
"ResourceRange" : {
"FixedAmount" : "23",
"RateAmount" : "0.5",
"MinRangeApplies" : "FALSE",
"MinRangeValue" : "-1",
"MaxRangeApplies" : "TRUE",
"MaxRangeValue" : "15" }
}
}